home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / dev / c / MemPools.lha / SMakefile < prev    next >
Makefile  |  1998-03-12  |  3KB  |  126 lines

  1. ###
  2. ###  MemPools:  malloc() replacement using standard Amiga pool functions.
  3. ###  Copyright  (C)  1994    Jochen Wiedmann
  4. ###
  5. ###  This program is free software; you can redistribute it and/or modify
  6. ###  it under the terms of the GNU General Public License as published by
  7. ###  the Free Software Foundation; either version 2 of the License, or
  8. ###  (at your option) any later version.
  9. ###
  10. ###  This program is distributed in the hope that it will be useful,
  11. ###  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ###  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. ###  GNU General Public License for more details.
  14. ###
  15. ###  You should have received a copy of the GNU General Public License
  16. ###  along with this program; if not, write to the Free Software
  17. ###  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. ###
  19. ###
  20. ###  This is the Makefile for SMake.
  21. ###
  22. ###
  23. ###  Computer:  Amiga 1200
  24. ###
  25. ###  Compilers: Dice 3.01
  26. ###             SAS/C 6.50
  27. ###             gcc 2.6.1
  28. ###
  29. ###
  30. ###  Author:    Jochen Wiedmann
  31. ###             Am Eisteich 9
  32. ###       72555 Metzingen
  33. ###             Germany
  34. ###
  35. ###             Phone: (0049) 7123 14881
  36. ###             Internet: jochen.wiedmann@uni-tuebingen.de
  37. ###
  38.  
  39. TIME=TimeMem TimeMem.sas TimeMem.ixemul TimeMem.libnix TimeProg
  40.  
  41. SRCS=calloc.c free.c init.c malloc.c realloc.c strdup.c \
  42.      MemPoolPuddleSize.c MemPoolThreshSize.c MemPoolFlags.c
  43.  
  44. OBJS=calloc.o free.o init.o malloc.o realloc.o strdup.o \
  45.      MemPoolPuddleSize.o MemPoolThreshSize.o MemPoolFlags.o
  46.  
  47. LIBS=mempools.lib libmempools.a
  48.  
  49. DIST=Makefile SMakefile COPYING MemPools.readme \
  50.      TimeMem.c TimeProg.c mempools.h my_alib_protos.h\
  51.      SCOPTIONS
  52.  
  53. CFLAGS=\
  54.     PARAMETERS=BOTH ANSI NOSTACKCHECK NOSTACKEXTEND OPTIMIZE STRICT
  55.  
  56.  
  57. ############################################################################
  58. ###
  59. ###  Targets: all clean dist check time
  60. ###
  61. ############################################################################
  62.  
  63. all: mempools.lib
  64.  
  65. dist: distall dodist
  66.  
  67. distall: mempools.lib libmempools.a
  68.     -Delete libmempoolsd.a mempoolsd.a \#?.(o|lnk) $(TIME) quiet
  69.  
  70. dodist:
  71.     execute <<
  72.     cd /
  73.     Delete MemPools.lha quiet
  74.     lha a -x MemPools.lha MemPools/ $(SRCS) $(LIBS) $(DIST)
  75.     copy MemPools/MemPools.readme "" clone
  76.     cd mempools
  77. <
  78.  
  79. mempools.lib: $(OBJS)
  80.     oml $@ r $(OBJS)
  81.     -Delete \#?.o quiet
  82.  
  83. libmempools.a:
  84.     -Delete \#?.o quiet
  85.     make libmempools.a
  86.  
  87. libmempoolsd.a:
  88.     -Delete \#?.o quiet
  89.     make libmempoolsd.a
  90.  
  91. clean:
  92.     -delete \#?.o \#?.lib lib\#?.a all quiet
  93.  
  94. check: TimeMem
  95.     @avail flush
  96.     @TimeMem VERBOSE
  97.     @avail flush
  98.     -Delete TimeMem TimeMem.o quiet
  99.  
  100. time: $(TIME)
  101.     @echo You'd better get a cup of coffee now ...
  102.     @echo
  103.     @echo Timing SAS/C functions
  104.     @TimeProg "TimeMem.sas"
  105.     @echo Timing ixemul functions
  106.     @TimeProg "TimeMem.ixemul"
  107.     @echo Timing libnix functions
  108.     @TimeProg "TimeMem.libnix"
  109.     @echo Timing MemPool functions
  110.     @TimeProg "TimeMem"
  111.  
  112. TimeMem: TimeMem.c mempools.lib
  113.     sc LINK $(CFLAGS) PROGRAMNAME TimeMem TimeMem.c LIB mempools.lib
  114.  
  115. TimeMem.sas: TimeMem.c
  116.     sc LINK $(CFLAGS) PROGRAMNAME TimeMem.sas TimeMem.c
  117.  
  118. TimeMem.ixemul: TimeMem.c
  119.     make TimeMem.ixemul
  120.  
  121. TimeMem.libnix: TimeMem.c
  122.     make TimeMem.libnix
  123.  
  124. TimeProg: TimeProg.c
  125.     sc LINK $(CFLAGS) PROGRAMNAME TimeProg TimeProg.c
  126.